package com.yanmaohu.nikita.data.function.statement;

import com.yanmaohu.nikita.data.expression.NameExpression;
import com.yanmaohu.nikita.data.structure.StructureBody;

/**
 * @author Bright Lee
 */
public final class StructureStatement extends LoopStatement {

    private NameExpression structureName;
    private StructureBody structureBody;

    public StructureStatement(NameExpression structureName, StructureBody structureBody) {
        super(structureName.getBeginIndex(), structureBody.getEndIndex());
        this.structureName = structureName;
        this.structureBody = structureBody;
    }

    public NameExpression getStructureName() {
        return structureName;
    }

    public StructureBody getStructureMemberList() {
        return structureBody;
    }

}
